#!/bin/bash

function _echo() {
  local COLOR=$1
  local CONTENT=$2
  # 1-红色, 2-绿色 3-黄色 4-蓝色 5-紫色 6-青色
  if [ "$COLOR" -eq 1 ]; then
    echo -e "\033[31m ● $CONTENT \033[0m"
  elif [ "$COLOR" -eq 2 ]; then
    echo -e "\033[32m ● $CONTENT \033[0m"
  elif [ "$COLOR" -eq 3 ]; then
    echo -e "\033[33m ● $CONTENT \033[0m" 
  elif [ "$COLOR" -eq 4 ]; then
    echo -e "\033[34m ● $CONTENT \033[0m"
  elif [ "$COLOR" -eq 5 ]; then
    echo -e "\033[35m ● $CONTENT \033[0m"
  elif [ "$COLOR" -eq 6 ]; then
    echo -e "\033[36m ● $CONTENT \033[0m"   
  fi
}